package com.wems.dev_ops_manage.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wems.common.annotation.Excel;
import com.wems.common.core.domain.BaseEntity;

/**
 * 维修记录对象 tb_maintenance_record
 * 
 * @author MPC
 * @date 2025-04-05
 */
public class MaintenanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修ID */
    private Long maintenanceId;

    /** 故障ID */
    @Excel(name = "故障ID")
    private Long faultId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 维修人员 */
    @Excel(name = "维修人员")
    private String technician;

    /** 维修措施 */
    @Excel(name = "维修措施")
    private String actionsTaken;

    /** 费用 */
    @Excel(name = "费用")
    private BigDecimal cost;

    public void setMaintenanceId(Long maintenanceId) 
    {
        this.maintenanceId = maintenanceId;
    }

    public Long getMaintenanceId() 
    {
        return maintenanceId;
    }

    public void setFaultId(Long faultId) 
    {
        this.faultId = faultId;
    }

    public Long getFaultId() 
    {
        return faultId;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }

    public void setTechnician(String technician) 
    {
        this.technician = technician;
    }

    public String getTechnician() 
    {
        return technician;
    }

    public void setActionsTaken(String actionsTaken) 
    {
        this.actionsTaken = actionsTaken;
    }

    public String getActionsTaken() 
    {
        return actionsTaken;
    }

    public void setCost(BigDecimal cost) 
    {
        this.cost = cost;
    }

    public BigDecimal getCost() 
    {
        return cost;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("maintenanceId", getMaintenanceId())
            .append("faultId", getFaultId())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("technician", getTechnician())
            .append("actionsTaken", getActionsTaken())
            .append("cost", getCost())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .toString();
    }
}
